﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Configuration;
using System.Security.Cryptography;

namespace UCenter.Core.Security
{
    public class HashAlgorithmProvider : ICryptographyProvider
    {
        public string Encrypting(string source)
        {
            if (string.IsNullOrEmpty(source))
            {
                throw new InvalidOperationException("There is no encrypting target. ");
            }

            return source;
        }

        public string Decrypting(string source)
        {
            if (string.IsNullOrEmpty(source))
            {
                throw new InvalidOperationException("There is no decrypting target.");
            }

            return source;
        }
    }
}
